import {requestCategoryList} from '@/api'
const state={
    categoryList:[]
}
const mutations={
     //把数据交给state中
     setcateListstate(state,value){
        state.categoryList=value
     }
}
const actions={
    async categoryListAction({commit}){
        const result=await requestCategoryList()
        commit('setcateListstate',result)
    }
}
const getters={}


export default{
    namespaced:true,
    state,
    mutations,
    actions,
    getters
}